






<div class="admin-biaogelist">

    <div class="listbiaoti am-cf">
        <ul class="am-icon-flag on"> 京东务列表</ul>

        <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="#">京东务列表</a></dl>

        <!--<dl>
          <button type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 补充线订单</button>
        </dl>-->
        <!--这里打开的是新页面-->

    </div>

    <div class="fbneirong">
        <form class="am-form am-g">
            <div class="soso">

                <p>
                    开始时间
                    <input type="" id="datetimepicker" name="date1" class="date_picker" data-date-format="yyyy-mm-dd">
                    结束时间
                    <input type="" id="datetimepicker" name="date2" class="date_picker" data-date-format="yyyy-mm-dd">
                </p>
                <p class="ycfg" style="margin-left: 60px;"><input type="text" name="shop_name" class="am-form-field am-input-sm" placeholder="商铺名" /></p>
                <p class="ycfg" style="margin-left: 60px;"><input type="text" name="username" class="am-form-field am-input-sm" placeholder="用户名" /></p>
                <p class="" > <div   style="margin-left: 20px;" class="am-btn am-btn-secondary am-radius search">查找</div></p>
                <p class="" > <a   style="margin-left: 20px;" class="am-btn am-btn-secondary am-radius excelout"  href="<?php echo base_url()."/Customer/getjdtasklistexcel/2/0/0"?>">导出</a></p>

            </div>
            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped am-table-hover">
                <thead>
                <tr class="am-success">
                    <th class="table-check"><input type="checkbox" /></th>

                    <th class="table-id">ID</th>
                    <th class="table-title">日期</th>
                    <th class="table-type">主商品</th>
                    <th class="table-type">单量</th>
                    <th class="table-type">单数</th>
                    <th class="table-type">关键词</th>
                    <th class="table-author am-hide-sm-only">商家</th>
                    <th class="table-author am-hide-sm-only">销售</th>
                    <th class="table-author am-hide-sm-only">本金</th>
                    <th class="table-date am-hide-sm-only">金币</th>
                    <th class="table-date am-hide-sm-only">操作</th>
                </tr>
                </thead>
                <tbody class="impowdith">




                </tbody>
            </table>

            <!--  <div class="am-btn-group am-btn-group-xs">
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
              </div>-->



            <div id="Pagination" style="margin:20px auto" style="display:none"></div>

            <!--  <ul class="am-pagination am-fr">


              </ul>-->




            <hr />
            <p>注：.....</p>
        </form>



    </div>



    <script>
        var on_request=false;
        var page=1;
        $(".search").click(function () { page=1;
            getpddtasklist();

        });





        function setlisthtnml(data) {
            var html = "";

            if (data.list.length > 0) {
                $.each(data.list, function (key, value) {
                    html = html +
                        '<tr ><td><input type="checkbox" /></td>\n' +
                        '<td>' + value.id + '</td>\n' +
                        '<td>' + value.addtime + '</td>\n' +
                        '<td style="text-overflow: ellipsis; width: 250px;">' + value.goods_name + '</td>\n' +
                        '<td>' + value.number + '</td>\n' +
                        '<td>' + value.each_single + '</td>\n' +
                        '<td>' + value.keyword + '</td>\n' +
                        '<td>' + value.shop_name + '</td>\n' +
                        '<td>' + value.salername + '</td>\n' +
                        '<td>' + value.money + '</td>\n' +
                        '<td>' + value.gold + '</td>\n' +
                        '<td><div    id="edit" ><a href="<?php echo base_url()."Customer/relodjdtask/'+value.id+'"; ?>">修改</a></div></td>\n' +

                        '</tr>';
                });
                $(".impowdith").html(html);
                $('#Pagination').show();
            } else {
                html += '<li><div style="width:100%;text-align:center;">&nbsp暂无数据</div></li>';
                $(".impowdith").html(html);
                $('#Pagination').hide();
            }
        }
        getpddtasklist();
        function getpddtasklist() {
            var url = "<?php echo base_url(); ?>/Customer/getjdtasklist";
            var username=$("input[name='username']").val();
            var shop_name=$("input[name='shop_name']").val();
            var date1=$("input[name='date1']").val();
            var date2=$("input[name='date2']").val();

            var postdata = {
                'page': page,
                'username': username,
                'shop_name': shop_name,
                'date2': date2,
                'date1': date1
            };
            $.post(url, postdata, function (data) {
                on_request = false;
                setlisthtnml(data);
                setPagination("Pagination", data.count, page, data.epage, function (clickPage) {
                    page = parseInt(clickPage) + 1;
                    getpddtasklist();
                });
            }, 'json');

        }






    </script>








    <div class="foods">
        <ul>
            版权所有@2015.
        </ul>
        <dl>
            <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
        </dl>
    </div>




</div>

</div>




</div>


<!--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>-->
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/rem.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/respond.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.legacy.js"></script>


<!--[if (gte IE 9)|!(IE)]><!-->
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.min.js"></script>
<!--<![endif]-->



</body>
</html>